import Layout from '@/components/layout/Layout.vue'

export default [
  {
    path: '/job',
    component: Layout,
    redirect: '/job/list',
    meta: {
      title: '任务管理',
      icon: 'el-icon-s-order'
    },
    children: [
      {
        path: 'list',
        name: 'JobList',
        component: () => import('@/views/job/JobList.vue'),
        meta: { title: '任务列表' }
      },
      {
        path: 'add',
        name: 'JobAdd',
        component: () => import('@/views/job/JobForm.vue'),
        meta: { title: '新增任务' },
        hidden: true // 不在菜单中显示
      },
      {
        path: 'edit/:id',
        name: 'JobEdit',
        component: () => import('@/views/job/JobForm.vue'),
        meta: { title: '编辑任务' },
        hidden: true
      }
    ]
  }
]
